.simple-floating-ball {
  position: fixed;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); /* 蓝色渐变 */
  border: 4px solid #ffffff; /* 白色边框 */
  border-radius: 50%;
  cursor: grab;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.simple-floating-ball.dragging {
  cursor: grabbing;
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6), 0 0 0 8px rgba(59, 130, 246, 0.3);
}

.simple-floating-ball:hover {
  transform: translateY(-1px) scale(1.03);
}

.simple-floating-ball:active {
  transform: scale(0.95);
}

.simple-floating-ball-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.simple-floating-ball-tooltip {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.simple-floating-ball-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
}

.simple-floating-ball:hover .simple-floating-ball-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* 蓝色脉冲环（外层） */
.simple-floating-ball::before,
.simple-floating-ball::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.3);
  animation: ringPulse 2s ease-in-out infinite;
}

.simple-floating-ball::after {
  inset: -22px;
  background: rgba(29, 78, 216, 0.2);
  animation-delay: 0.6s;
}

@keyframes ringPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  60% {
    transform: scale(1.1);
    opacity: 0.25;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

@keyframes dragGlow {
  0% {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.8), 0 0 0 8px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.9), 0 0 0 12px rgba(59, 130, 246, 0.5);
  }
  100% {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.8), 0 0 0 8px rgba(59, 130, 246, 0.3);
  }
}

/* AI聊天对话框覆盖层 */
.floating-ball-chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
  backdrop-filter: blur(4px);
}


/* 响应式设计 */
@media (max-width: 768px) {
  .simple-floating-ball {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }
  
  .simple-floating-ball-icon {
    font-size: 24px;
  }
  
  .simple-floating-ball-tooltip {
    bottom: 70px;
    right: -10px;
    font-size: 11px;
  }
}
